package com.lagou;

import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;

public class SpringApplication {
    public static void run() {
        AnnotationConfigWebApplicationContext ac = new AnnotationConfigWebApplicationContext();
        ac.register(AppConfig.class);
        ac.refresh();

        TomcatServer server = new TomcatServer();
        server.start();
    }
}
